package com.daoyintech.controllers.hongbao;

import com.daoyintech.services.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xuzhaolin on 15/12/29.
 */

@RestController
@RequestMapping(value = "/weixin/hongbao/events")
public class EventsController {

    @Autowired
    private EventService eventService;


    @RequestMapping(value="/index")
    public Object index(){
        return eventService.findALl();
    }

    @RequestMapping(value="/create")
    public Object create(){

        return eventService.create();
    }




}
